{include file="public/header"}
<div class="main rank">
    <button class="huobtn">活动榜单</button>
    <div class="purplebox">
        <div class="weui-flex">
            {if condition="isset($apply[1])"}
                <div class="weui-flex__item toprank">
                    <a href="{:url('/index/index/detail', ['activity_id' => $activity['id'], 'apply_id' => $apply[1]['id']])}" class="fulink">
                        <div class="imgbox">
                            <img src="{$apply[1]['picture']}" alt="">
                            <span class="biao"><i class="iconfont icon-liwu"></i></span>
                        </div>
                        <p class="gray">{$apply[1]['baby_name']}</p>
                        <p class="c-purple">{$apply[1]['poll']}票</p>
                        <span class="place">{$apply[1]->getRank()}</span>
                    </a>
                </div>
            {/if}
            {if condition="isset($apply[0])"}
                <div class="weui-flex__item toprank">
                    <a href="{:url('/index/index/detail', ['activity_id' => $activity['id'], 'apply_id' => $apply[0]['id']])}" class="fulink">
                        <div class="imgbox">
                            <img src="{$apply[0]['picture']}" alt="">
                        </div>
                        <p class="gray">{$apply[0]['baby_name']}</p>
                        <p class="c-purple">{$apply[0]['poll']}票</p>
                        <span class="place">{$apply[0]->getRank()}</span>
                    </a>
                </div>
            {/if}
            {if condition="isset($apply[2])"}
                <div class="weui-flex__item toprank">
                    <a href="{:url('/index/index/detail', ['activity_id' => $activity['id'], 'apply_id' => $apply[2]['id']])}" class="fulink">
                        <div class="imgbox">
                            <img src="{$apply[2]['picture']}" alt="">
                            <span class="biao"><i class="iconfont icon-liwu"></i></span>
                        </div>
                        <p class="gray">{$apply[2]['baby_name']}</p>
                        <p class="c-purple">{$apply[2]['poll']}票</p>
                        <span class="place">{$apply[2]->getRank()}</span>
                    </a>
                </div>
            {/if}
        </div>
        <ul>
            {volist name="$apply" id="val" key="key" offset="2" length="6"}
                <li>
                    <a href="{:url('/index/index/detail', ['activity_id' => $activity['id'], 'apply_id' => $val['id']])}" class="fulink">
                        <span class="place">{$val->getRank()}</span>
                        <div class="imgbox">
                            <img src="{$val['picture']}" alt="">
                            <span class="biao"><i class="iconfont icon-liwu"></i></span>
                            <div>
                                <p class="gray">{$val['baby_name']}</p>
                                <p class="c-purple">{$val['poll']}票</p>
                            </div>
                        </div>
                        <i class="iconfont icon-xiangyou1 f-right"></i>
                    </a>
                </li>
            {/volist}
        </ul>
    </div>

    <div class="fot">
        <p>Copiright @2012-2018</p><p>美育儿meiyuer.com 版权所有</p>
    </div>
</div>
<script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="/static/index/js/jquery-weui.min.js"></script>
<script type="text/javascript" src="/static/index/js/fastclick.js"></script>
<script>

</script>
{include file="public/footer"}
